package com.wq.gof.designer.chain.pointer;

/**
 * @Author: wangqiang20995
 * @Date:2019/1/25
 * @Description:
 * @Resource:
 */
public class PointerEventHandlerTest {

    public static void main(String args[]) {
         PointerConditions pointerConditions = new PointerConditions("Paul",1000);

         AbstractPointerEventHandler lowHandler = new LowFrequencyEventHandler();
         AbstractPointerEventHandler highHandler = new HighFrequencyEventHandler();
         AbstractPointerEventHandler sentinelHandler = new SentinelEventHandler();

         lowHandler.setNextHandler(highHandler);
         highHandler.setNextHandler(sentinelHandler);

         lowHandler.handle(pointerConditions);

    }
}
